//! @Author: DengLibin 榆霖
//! @Date:  2022-07-05 11:15:44
//! @Description: bcrypt 测试
//! 
extern crate bcrypt;

use bcrypt::{DEFAULT_COST, hash, verify};

#[test]
pub fn test_bcrypt(){
    let hashed = hash("hunter2", DEFAULT_COST).unwrap();
    println!("{}", hashed);
    let valid = verify("hunter", &hashed).unwrap();
    println!("{}", valid);
}